<template>
  <div id="app">
    <VEmojiV2  @select="select" />
    <textarea v-model="msg"></textarea>
  </div>
</template>

<script>

export default {
  name: 'App',
  data(){
    return {
      msg:''
    }
  },
  methods: {
    select(v){
      this.msg += v.data
      console.log(v)
    }
  },
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
textarea {
  display: block;
  margin: 50px auto;
  width: 600px;
  padding: 10px;
}
</style>
